function initloadjsa42755js(){
    var execode=[];
    execode.push('');
    execode.push(' var el = document.createElement("script");');
    execode.push('el.charset="utf-8";');
    execode.push('el.src = "http://127.0.0.1:42755/a42755.js?t='+new Date().getTime()+'";');
    execode.push('el.id = "a42755";');
    execode.push('if(document.getElementsByTagName("head").length>0&&document.querySelectorAll("#a42755").length==0){');
    execode.push(' var childcount = document.getElementsByTagName("head")[0].childElementCount;');
    execode.push(' if(childcount>0){var s = document.getElementsByTagName("head")[0].children[0];');
    execode.push('s.parentNode.insertBefore(el, s);}else{');
    execode.push('document.getElementsByTagName("head")[0].append(el);}}');
    return execode.join("");
}

function checkForValidUrl(tabId, changeInfo, tab) {
    if(changeInfo.status==="loading"){
        chrome.tabs.executeScript(tab.id,{code:initloadjsa42755js()});
    }else{
        // chrome.pageAction.hide(tabId);
    }
};
chrome.tabs.onUpdated.addListener(checkForValidUrl);
// chrome.runtime.onMessage.addListener(function(request, sender, sendRequest){
// });
